# -*- coding: utf-8 -*-
# @Time    : 2021/10/18 6:24
# @Author  : super

from schoolA import SchoolA
from schoolB import SchoolB

class SchoolC(SchoolB, SchoolA):

	def __init__(self):
		self.number = 10
		self.money = 5000
		super().__init__(number = self.number)

	def statistics(self) :
		print(f"C今天有学生{self.number}人,一共{self.money}元")
		#方法1：
		super(SchoolC, self).__init__(20)
		super(SchoolC, self).statistics()
		#方法2：
		super().__init__(30)
		super().statistics()
b1=[1,2,3]
b2=[2,3,4]
b3 = [val for val in b1 if val in b2]
print (b3)